package org.syncsoft.overalt.domain.folder.entity;

import org.syncsoft.overalt.common.api.Resource;

public enum TypeShare {
	MY_FILES(Resource.getProperty("overalt.text.my.files")),
	CONTACTS_FILE(Resource.getProperty("overalt.text.contacts.file")),
	COMMUNITY_FILES(Resource.getProperty("overalt.text.community.file")),
	MEMBERS_COMMUNITY(Resource.getProperty("overalt.text.members.community"));
	
	public static TypeShare getTypeShare(int index) {
		return values()[index];
	}

	private String name;
	
	TypeShare(String name) {
		setName(name);
	}
	
	@Override
	public String toString() {
		return getName();
	}

	private String getName() {
		return name;
	}

	private void setName(String name) {
		this.name = name;
	}
}
